package com.light.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.pojo.ESPojo;
import com.light.common.utils.PageUtils;
import com.light.gulimall.product.entity.CategoryEntity;
import com.light.gulimall.product.vo.CategoryJsonVO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-15 21:42:34
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 组装树形结构
     * @return  查询结果
     */
    List<CategoryEntity> listWithTree();

    /**
     * 根据ID 逻辑删除商品分类
     * @param ids
     */
    void removeCategoryByIds(List<Long> ids);

    void getCateInfoById(Long catalogId, ESPojo esPojo);

    List<CategoryEntity> getLevelOneCateGory();

    Map<String, List<CategoryJsonVO>> getCategoryJson();
}

